set the member of sprite the spriteNum of me to me.normalmember
me.setting = 0
else
set the member of sprite the spriteNum of me to me.togglemember
me.setting = 1
end if
updateStage()
end
on getBehaviorDescription
return "Makes a sprite work as a toggle button with automatic highlighting and mouse tracking. The behavior responds when clicked, or when the SetToggleValue or Toggle messages are receieved. Use the the UI Radio Group behavior to control toggle buttons in radio button groups." & RETURN & "PARAMETERS:" & RETURN & "ΓÇó Toggle Image - Choose the cast member to display when the button is toggled." & RETURN & "ΓÇó Initially Toggled - Turn this option to make the button toggled when it first appears." & RETURN & "MESSAGES:" & RETURN & "ΓÇó SetToggleValue {TRUE or FALSE} - Sets the toggle button." & RETURN & "ΓÇó Toggle - Switches the toggle button state."